package com.yibai.web.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yibai.web.admin.entity.Menu;
import com.yibai.web.admin.req.MenuInfoRequest;
import com.yibai.web.admin.req.MenuListRequest;
import com.yibai.web.admin.req.MenuRequest;
import com.yibai.web.dto.SuperResponse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fang
 * @since 2020-06-13
 */
public interface MenuService extends IService<Menu> {

    SuperResponse list(MenuListRequest request);

    SuperResponse listForSelect(MenuListRequest request);

    SuperResponse find(MenuRequest request);

    SuperResponse insert(MenuInfoRequest request);

    SuperResponse update(MenuInfoRequest request);

    SuperResponse delete(MenuRequest request);

    List<Menu> findChildren(Integer pid,String userId);

}
